package com.ems.sys.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/****
 * @Author:传智播客
 * @Description:Emlpoyee构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="users")
public class Users implements Serializable {

	@Id
	@Column(name = "uId")
	private String uId;//工员id

	@Column(name = "username")
	private String username;//员工名称

	@DateTimeFormat(pattern = "yyyy-MM-dd") //入参
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
	@Column(name = "createDate")
	private Date createDate;//创建日期

	@Column(name = "password")
	private String password;//密码

	@Column(name = "status")
	private Integer status;//电话号码
	@Column(name = "imgUrl")
	private String imgUrl;
	@Column(name = "verifyCode")
	private String verifyCode;

	private List<Role> roleList;

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}

	public String getuId() {
		return uId;
	}

	public void setuId(String uId) {
		this.uId = uId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}